<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "" "">
<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ajax="http://www.apusic.com/jsf/ajax"
	renderKitId="AJAX" xmlns:epm="http://www.bp.com.cn/epm">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<w:stylesheet src="/css/kmp4.css" type="text/css"></w:stylesheet>
		<w:script src="/javascript/k4.js" type="text/javascript" language="UTF-8"></w:script>
	</w:head>
	<w:page title="新建预案">
		<layout:panel border="false" header="false" autoHeight="true" autoWidth="true"
			styleClass="k4-form">
			<w:form groupId="1" clientValidate="true">
				<layout:panel border="false" autoHeight="true" autoWidth="true" styleClass="k4-form-toolbar">
					<w:toolBar>
						<w:button label="保存" id="save"
							image="#{facesContext.externalContext.requestContextPath}/images/save.gif" />
						<w:separator />
						<w:button label="取消"
							image="#{facesContext.externalContext.requestContextPath}/images/cancel.gif"
							onclick="javascript:closeCenterLayoutTab('addSchnarioTab')" alwaysSubmit="false" />
					</w:toolBar>
				</layout:panel>
				<layout:panelGrid columns="4" cellpadding="0" cellspacing="0" border="1"
					styleClass="k4-form-grid">
					<layout:cell styleClass="k4-form-fieldtitle" style="height: 0px;">
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" style="height: 0px;">
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle" style="height: 0px;">
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" style="height: 0px;">
					</layout:cell>

					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="预案名称"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:textField id="srName" styleClass="k4-form-textfield-long" required="true"
							allowBlank="false" requiredMessage="预案名称不能为空"></w:textField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="预案编码"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField id="srCode" styleClass="k4-form-textfield"></w:textField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="预案类型"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="srType" styleClass="k4-form-comofield" editable="false" required="true" allowBlank="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="适用范围"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:combo id="srRangeBigType" styleClass="k4-form-comofield" editable="false" required="true" allowBlank="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="2">
						<w:combo id="srRangeThinType" styleClass="k4-form-comofield" editable="false" required="true" allowBlank="false">
						</w:combo>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="创建者"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<epm:personSingleSelect idField="createUser" nameField="createUserName"
							styleClass="k4-form-textfield"></epm:personSingleSelect>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="创建时间"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:dateTimeField id="createDate" styleClass="k4-form-datefield"></w:dateTimeField>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="版本号"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<w:textField id="version" styleClass="k4-form-textfield"></w:textField>
					</layout:cell>

					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="系统版本号"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<h:outputText id="srVersion" styleClass="k4-form-textfield"></h:outputText>
					</layout:cell>

					<!--<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="发布单位"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue">
						<epm:deptSingleSelect idField="publishDep" styleClass="k4-form-triple-textfield"></epm:deptSingleSelect>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="发布时间"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:dateTimeField id="publishDate" styleClass="k4-form-triple-datefield"></w:dateTimeField>
					</layout:cell>

					-->
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="摘要"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:simpleHtmlEditor height="200" width="560" id="model"
							fontFamilies="['宋体','隶书','楷体','仿宋','黑体','华文彩云','华文琥珀','幼圆','Times New Roman','微软雅黑','楷体_GB2312','仿宋_GB2312']"></w:simpleHtmlEditor>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldtitle">
						<h:outputLabel value="备注"></h:outputLabel>
					</layout:cell>
					<layout:cell styleClass="k4-form-fieldvalue" colspan="3">
						<w:simpleHtmlEditor height="200" width="560" id="remark"
							fontFamilies="['宋体','隶书','楷体','仿宋','黑体','华文彩云','华文琥珀','幼圆','Times New Roman','微软雅黑','楷体_GB2312','仿宋_GB2312']"></w:simpleHtmlEditor>
					</layout:cell>
				</layout:panelGrid>
			</w:form>
		</layout:panel>
	</w:page>
</f:view>